package demo3;
class Animal {
    public String name = "Lihua";
    public int age;

}
class Dog extends Animal {
    public String name = "zhangsan";

    public void fun () {
        System.out.println("姓名 :" + super.name);
    }
}
public class Test1 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.fun();
    }
}
